import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from 'Store'
import 'Utils/rem'
import 'Utils/vantCompImport'
import myPlugin from 'Plugins'
// import { loginReq } from './hrkc';

Vue.use(myPlugin)

Vue.config.productionTip = false


// router.beforeEach(async (to,from,next) => {
//   const {code,msg} = await loginReq()
//   //页面跳转  next('/login')
//   if (code == 0 || to.path=="/login") {
//     next()
//   } else {
//     next('/login')
//   }
// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
